var net = require('net');

var server = net.createServer(conn => {
	console.log('client connected');
	conn.on('end', () => {
		console.log('client closed');
	});
	conn.write('Hello World!');
	conn.pipe(conn);
}).listen(8080, () => {
	console.log('server started');
});

